#ifndef _GlobalData_H_
#define _GlobalData_H_

#define kLayerMain 101
#define kLayerLogo 102
#define kTagRemoveAds 1001
#define kTagFullversion 1002

#define kCircleRadius 75
#define kCircleY 210

#define kRemindCount 10

#define kStartPos 0

typedef enum
{
    kGameModeNormal,    // 普通
    kGameModeTest       // 段位测试
} GameMode;

typedef enum
{
    kFingerOne,
    kFingerTwo
} FingerCount;

typedef enum tagGameState
{
	kStateNone,
	kStateBegin,
	kStateResult,
	kStateFinish
} GameState;

typedef enum tagTouchState
{
	kTouchUngrabbed,
	kTouchGrabbed,
} TouchState;

typedef struct
{
    bool isClear;
    int goal;               // 关卡目标
    int time;               // 关卡时间
    FingerCount finger;     // 按键数
} LevelDetail;

extern int gTestLevel;              // 选择的等级
extern GameMode gGameMode;          // 玩家选择的模式
extern FingerCount gFingerCount;    // 按键数
extern int gHighScore[2];
extern const char* gLeaderboardName[2];

// 评论引导
extern bool gIsReviewd;         // 是否已经进行过评论
extern int gCurReviewCount;     // 当前评论计数,每10次游戏弹出一遍

extern LevelDetail gLevelDetail[10];

#endif